package com.reading.cms.framework.web.service;

import com.reading.core.manager.system.IConfigManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * RuoYi首创 html调用 thymeleaf 实现参数管理
 *
 * @author ruoyi
 */
@Component
public class ConfigService {

    @Autowired
    private IConfigManager configManager;

    /**
     * 根据键名查询参数配置信息
     *
     * @param configKey 参数名称
     * @return 参数键值
     */
    public String selectConfigByKey(String configKey) {
        return configManager.selectConfigByKey(configKey);
    }

}
